-
-
Notifications
You must be signed in to change notification settings - Fork 770
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add slice Splice an element or multiple elements at index i. #371
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code looks good to me, anything preventing this from being merged? Would like to make use of it
On second glance, something seems off
Running a benchmark of this seems way off from how I would expect an insert to look.
|
fc58c98
to
8809c7b
Compare
Thank you. After testing, it is indeed as you said, and I modified it again, this is my test result goos: darwin BenchmarkInsert-8 100000000 13.07 ns/op |
Wow, the difference between both versions is impressive! Sorry for the delay. I like your helper, but I'm not sure calling it JS, PHP, C++ and Rust named it "splice". |
And I think we should leverage vaargs to write a single helper instead of 2. |
00663d1
to
fec056c
Compare
@samber Thank you for your suggestion. I found that it can be further optimized, and I have already done it. Additionally, the name 'Insert' is borrowed from Ruby's Array#insert, though 'Splice' is also a good name. |
fec056c
to
0066bed
Compare
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #371 +/- ##
==========================================
- Coverage 94.30% 94.12% -0.18%
==========================================
Files 17 17
Lines 2633 2640 +7
==========================================
+ Hits 2483 2485 +2
- Misses 148 151 +3
- Partials 2 4 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
slice_test.go
Outdated
@@ -801,3 +801,16 @@ func TestIsSortedByKey(t *testing.T) { | |||
return ret | |||
})) | |||
} | |||
|
|||
func TestInsertSlice(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
func TestInsertSlice(t *testing.T) { | |
func TestSplice(t *testing.T) { |
I made some changes:
|
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [github.com/samber/lo](https://github.com/samber/lo) | `v1.43.0` -> `v1.44.0` | [![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fsamber%2flo/v1.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fsamber%2flo/v1.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fsamber%2flo/v1.43.0/v1.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fsamber%2flo/v1.43.0/v1.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>samber/lo (github.com/samber/lo)</summary> ### [`v1.44.0`](https://github.com/samber/lo/releases/tag/v1.44.0) [Compare Source](https://github.com/samber/lo/compare/v1.43.0...v1.44.0) #### What's Changed - feat: Add slice Splice an element or multiple elements at index i. by [@​wenlingang](https://github.com/wenlingang) in [samber/lo#371 - feat: Make Filter() preserve type. by [@​FGasper](https://github.com/FGasper) in [samber/lo#365 - feat: Added DropByIndex helper for slice by [@​phith0n](https://github.com/phith0n) in [samber/lo#398 - feat: upgrade to math/rand/v2 by [@​samber](https://github.com/samber) in [samber/lo#483 - chore: remove `golang.org/x/exp` since it doesn't follow go 1 compatibility promise by [@​trim21](https://github.com/trim21) in [samber/lo#478 #### New Contributors - [@​wenlingang](https://github.com/wenlingang) made their first contribution in [samber/lo#371 - [@​jason-zhj](https://github.com/jason-zhj) made their first contribution in [samber/lo#376 - [@​FGasper](https://github.com/FGasper) made their first contribution in [samber/lo#365 - [@​phith0n](https://github.com/phith0n) made their first contribution in [samber/lo#398 **Full Changelog**: samber/lo@v1.43.0...v1.44.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 11pm every weekday,before 7am every weekday,every weekend" in timezone Europe/Brussels, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/kairos-io/provider-kairos). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjAuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQyMC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [github.com/samber/lo](https://github.com/samber/lo) | `v1.39.0` -> `v1.44.0` | [![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fsamber%2flo/v1.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fsamber%2flo/v1.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fsamber%2flo/v1.39.0/v1.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fsamber%2flo/v1.39.0/v1.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>samber/lo (github.com/samber/lo)</summary> ### [`v1.44.0`](https://github.com/samber/lo/releases/tag/v1.44.0) [Compare Source](https://github.com/samber/lo/compare/v1.43.0...v1.44.0) #### What's Changed - feat: Add slice Splice an element or multiple elements at index i. by [@​wenlingang](https://github.com/wenlingang) in [samber/lo#371 - feat: Make Filter() preserve type. by [@​FGasper](https://github.com/FGasper) in [samber/lo#365 - feat: Added DropByIndex helper for slice by [@​phith0n](https://github.com/phith0n) in [samber/lo#398 - feat: upgrade to math/rand/v2 by [@​samber](https://github.com/samber) in [samber/lo#483 - chore: remove `golang.org/x/exp` since it doesn't follow go 1 compatibility promise by [@​trim21](https://github.com/trim21) in [samber/lo#478 #### New Contributors - [@​wenlingang](https://github.com/wenlingang) made their first contribution in [samber/lo#371 - [@​jason-zhj](https://github.com/jason-zhj) made their first contribution in [samber/lo#376 - [@​FGasper](https://github.com/FGasper) made their first contribution in [samber/lo#365 - [@​phith0n](https://github.com/phith0n) made their first contribution in [samber/lo#398 **Full Changelog**: samber/lo@v1.43.0...v1.44.0 ### [`v1.43.0`](https://github.com/samber/lo/releases/tag/v1.43.0) [Compare Source](https://github.com/samber/lo/compare/v1.42.0...v1.43.0) #### What's Changed - feat: adding HasKey by [@​samber](https://github.com/samber) in [samber/lo#477 - feat: adding lo.WaitFor by [@​samber](https://github.com/samber) in [samber/lo#269 - improvement: Optimize the performance of union method, avoid repeated expansion by [@​cwb2819259](https://github.com/cwb2819259) in [samber/lo#397 #### New Contributors - [@​cwb2819259](https://github.com/cwb2819259) made their first contribution in [samber/lo#397 **Full Changelog**: samber/lo@v1.42.0...v1.43.0 ### [`v1.42.0`](https://github.com/samber/lo/releases/tag/v1.42.0) [Compare Source](https://github.com/samber/lo/compare/v1.41.0...v1.42.0) #### What's Changed - feat: add Nil by [@​gubtos](https://github.com/gubtos) in [samber/lo#383 - feat: Add First and FirstOrZeroValue functions by [@​Alireza-Kiani](https://github.com/Alireza-Kiani) in [samber/lo#451 - feat: adding LastOrEmpty and LastOr by [@​samber](https://github.com/samber) in [samber/lo#474 - feat: Feature/contains iterate by index by [@​lennon-guan](https://github.com/lennon-guan) in [samber/lo#428 - feat: speed up loops by reducing allocations by [@​samber](https://github.com/samber) in [samber/lo#475 - doc: inconsistent expression in README.md by [@​rolancia](https://github.com/rolancia) in [samber/lo#406 #### New Contributors - [@​gubtos](https://github.com/gubtos) made their first contribution in [samber/lo#383 - [@​Alireza-Kiani](https://github.com/Alireza-Kiani) made their first contribution in [samber/lo#451 - [@​rolancia](https://github.com/rolancia) made their first contribution in [samber/lo#406 - [@​lennon-guan](https://github.com/lennon-guan) made their first contribution in [samber/lo#428 **Full Changelog**: samber/lo@v1.41.0...v1.42.0 ### [`v1.41.0`](https://github.com/samber/lo/releases/tag/v1.41.0) [Compare Source](https://github.com/samber/lo/compare/v1.40.0...v1.41.0) #### What's Changed - feat: adding Elipse by [@​samber](https://github.com/samber) in [samber/lo#470 - feat: adding CoalesceOrEmpty by [@​samber](https://github.com/samber) in [samber/lo#469 - feat: adding Earliest and Latest by [@​samber](https://github.com/samber) in [samber/lo#468 - feat: adding duration by [@​samber](https://github.com/samber) in [samber/lo#471 - feat: adding FilterReject by [@​samber](https://github.com/samber) in [samber/lo#472 - feat: adding RejectMap by [@​samber](https://github.com/samber) in [samber/lo#473 **Full Changelog**: samber/lo@v1.34.0...v1.41.0 ### [`v1.40.0`](https://github.com/samber/lo/releases/tag/v1.40.0) [Compare Source](https://github.com/samber/lo/compare/v1.39.0...v1.40.0) #### What's Changed ##### Improvements - Use map indexing to speed up PickByKeys and OmitByKeys by [@​ericleb010](https://github.com/ericleb010) in [samber/lo#447 - ToSlicePtr: reduce allocations and improving speed by [@​yanmhlv](https://github.com/yanmhlv) in [samber/lo#465 - Feat: Adding zipby + unzipby by [@​samber](https://github.com/samber) in [samber/lo#449 - feat: add string conversion functions by [@​eiixy](https://github.com/eiixy) in [samber/lo#466 - Adding Mean and MeanBy by [@​usman1100](https://github.com/usman1100) in [samber/lo#414 ##### Doc & style - Fix typos by [@​szepeviktor](https://github.com/szepeviktor) in [samber/lo#384 - fix: instantiate typo by [@​testwill](https://github.com/testwill) in [samber/lo#374 - Fix typo in README.md by [@​eltociear](https://github.com/eltociear) in [samber/lo#369 - docs: update description for FindOrElse by [@​slomek](https://github.com/slomek) in [samber/lo#370 - style: no extra any type parameter by [@​d-enk](https://github.com/d-enk) in [samber/lo#429 - Fix IsNil link for pkg.go.dev by [@​invzhi](https://github.com/invzhi) in [samber/lo#418 - Docs: should use type int64 for lo.FlatMap in example by [@​apriil15](https://github.com/apriil15) in [samber/lo#435 ##### CI - CI: tests on multi go versions by [@​jiro4989](https://github.com/jiro4989) in [samber/lo#445 #### New Contributors - [@​szepeviktor](https://github.com/szepeviktor) made their first contribution in [samber/lo#384 - [@​testwill](https://github.com/testwill) made their first contribution in [samber/lo#374 - [@​eltociear](https://github.com/eltociear) made their first contribution in [samber/lo#369 - [@​slomek](https://github.com/slomek) made their first contribution in [samber/lo#370 - [@​ericleb010](https://github.com/ericleb010) made their first contribution in [samber/lo#447 - [@​yanmhlv](https://github.com/yanmhlv) made their first contribution in [samber/lo#465 - [@​eiixy](https://github.com/eiixy) made their first contribution in [samber/lo#466 - [@​jiro4989](https://github.com/jiro4989) made their first contribution in [samber/lo#445 - [@​d-enk](https://github.com/d-enk) made their first contribution in [samber/lo#429 - [@​usman1100](https://github.com/usman1100) made their first contribution in [samber/lo#414 - [@​invzhi](https://github.com/invzhi) made their first contribution in [samber/lo#418 - [@​apriil15](https://github.com/apriil15) made their first contribution in [samber/lo#435 **Full Changelog**: samber/lo@v1.39.0...v1.40.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "on tuesday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/open-telemetry/opentelemetry-collector-contrib). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjEuMCIsInVwZGF0ZWRJblZlciI6IjM3LjQyMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJyZW5vdmF0ZWJvdCJdfQ==--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com> Co-authored-by: Yang Song <songy23@users.noreply.github.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [github.com/samber/lo](https://github.com/samber/lo) | `v1.39.0` -> `v1.44.0` | [![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fsamber%2flo/v1.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fsamber%2flo/v1.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fsamber%2flo/v1.39.0/v1.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fsamber%2flo/v1.39.0/v1.44.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>samber/lo (github.com/samber/lo)</summary> ### [`v1.44.0`](https://github.com/samber/lo/releases/tag/v1.44.0) [Compare Source](https://github.com/samber/lo/compare/v1.43.0...v1.44.0) #### What's Changed - feat: Add slice Splice an element or multiple elements at index i. by [@&open-telemetry#8203;wenlingang](https://github.com/wenlingang) in [samber/lo#371 - feat: Make Filter() preserve type. by [@&open-telemetry#8203;FGasper](https://github.com/FGasper) in [samber/lo#365 - feat: Added DropByIndex helper for slice by [@&open-telemetry#8203;phith0n](https://github.com/phith0n) in [samber/lo#398 - feat: upgrade to math/rand/v2 by [@&open-telemetry#8203;samber](https://github.com/samber) in [samber/lo#483 - chore: remove `golang.org/x/exp` since it doesn't follow go 1 compatibility promise by [@&open-telemetry#8203;trim21](https://github.com/trim21) in [samber/lo#478 #### New Contributors - [@&open-telemetry#8203;wenlingang](https://github.com/wenlingang) made their first contribution in [samber/lo#371 - [@&open-telemetry#8203;jason-zhj](https://github.com/jason-zhj) made their first contribution in [samber/lo#376 - [@&open-telemetry#8203;FGasper](https://github.com/FGasper) made their first contribution in [samber/lo#365 - [@&open-telemetry#8203;phith0n](https://github.com/phith0n) made their first contribution in [samber/lo#398 **Full Changelog**: samber/lo@v1.43.0...v1.44.0 ### [`v1.43.0`](https://github.com/samber/lo/releases/tag/v1.43.0) [Compare Source](https://github.com/samber/lo/compare/v1.42.0...v1.43.0) #### What's Changed - feat: adding HasKey by [@&open-telemetry#8203;samber](https://github.com/samber) in [samber/lo#477 - feat: adding lo.WaitFor by [@&open-telemetry#8203;samber](https://github.com/samber) in [samber/lo#269 - improvement: Optimize the performance of union method, avoid repeated expansion by [@&open-telemetry#8203;cwb2819259](https://github.com/cwb2819259) in [samber/lo#397 #### New Contributors - [@&open-telemetry#8203;cwb2819259](https://github.com/cwb2819259) made their first contribution in [samber/lo#397 **Full Changelog**: samber/lo@v1.42.0...v1.43.0 ### [`v1.42.0`](https://github.com/samber/lo/releases/tag/v1.42.0) [Compare Source](https://github.com/samber/lo/compare/v1.41.0...v1.42.0) #### What's Changed - feat: add Nil by [@&open-telemetry#8203;gubtos](https://github.com/gubtos) in [samber/lo#383 - feat: Add First and FirstOrZeroValue functions by [@&open-telemetry#8203;Alireza-Kiani](https://github.com/Alireza-Kiani) in [samber/lo#451 - feat: adding LastOrEmpty and LastOr by [@&open-telemetry#8203;samber](https://github.com/samber) in [samber/lo#474 - feat: Feature/contains iterate by index by [@&open-telemetry#8203;lennon-guan](https://github.com/lennon-guan) in [samber/lo#428 - feat: speed up loops by reducing allocations by [@&open-telemetry#8203;samber](https://github.com/samber) in [samber/lo#475 - doc: inconsistent expression in README.md by [@&open-telemetry#8203;rolancia](https://github.com/rolancia) in [samber/lo#406 #### New Contributors - [@&open-telemetry#8203;gubtos](https://github.com/gubtos) made their first contribution in [samber/lo#383 - [@&open-telemetry#8203;Alireza-Kiani](https://github.com/Alireza-Kiani) made their first contribution in [samber/lo#451 - [@&open-telemetry#8203;rolancia](https://github.com/rolancia) made their first contribution in [samber/lo#406 - [@&open-telemetry#8203;lennon-guan](https://github.com/lennon-guan) made their first contribution in [samber/lo#428 **Full Changelog**: samber/lo@v1.41.0...v1.42.0 ### [`v1.41.0`](https://github.com/samber/lo/releases/tag/v1.41.0) [Compare Source](https://github.com/samber/lo/compare/v1.40.0...v1.41.0) #### What's Changed - feat: adding Elipse by [@&open-telemetry#8203;samber](https://github.com/samber) in [samber/lo#470 - feat: adding CoalesceOrEmpty by [@&open-telemetry#8203;samber](https://github.com/samber) in [samber/lo#469 - feat: adding Earliest and Latest by [@&open-telemetry#8203;samber](https://github.com/samber) in [samber/lo#468 - feat: adding duration by [@&open-telemetry#8203;samber](https://github.com/samber) in [samber/lo#471 - feat: adding FilterReject by [@&open-telemetry#8203;samber](https://github.com/samber) in [samber/lo#472 - feat: adding RejectMap by [@&open-telemetry#8203;samber](https://github.com/samber) in [samber/lo#473 **Full Changelog**: samber/lo@v1.34.0...v1.41.0 ### [`v1.40.0`](https://github.com/samber/lo/releases/tag/v1.40.0) [Compare Source](https://github.com/samber/lo/compare/v1.39.0...v1.40.0) #### What's Changed ##### Improvements - Use map indexing to speed up PickByKeys and OmitByKeys by [@&open-telemetry#8203;ericleb010](https://github.com/ericleb010) in [samber/lo#447 - ToSlicePtr: reduce allocations and improving speed by [@&open-telemetry#8203;yanmhlv](https://github.com/yanmhlv) in [samber/lo#465 - Feat: Adding zipby + unzipby by [@&open-telemetry#8203;samber](https://github.com/samber) in [samber/lo#449 - feat: add string conversion functions by [@&open-telemetry#8203;eiixy](https://github.com/eiixy) in [samber/lo#466 - Adding Mean and MeanBy by [@&open-telemetry#8203;usman1100](https://github.com/usman1100) in [samber/lo#414 ##### Doc & style - Fix typos by [@&open-telemetry#8203;szepeviktor](https://github.com/szepeviktor) in [samber/lo#384 - fix: instantiate typo by [@&open-telemetry#8203;testwill](https://github.com/testwill) in [samber/lo#374 - Fix typo in README.md by [@&open-telemetry#8203;eltociear](https://github.com/eltociear) in [samber/lo#369 - docs: update description for FindOrElse by [@&open-telemetry#8203;slomek](https://github.com/slomek) in [samber/lo#370 - style: no extra any type parameter by [@&open-telemetry#8203;d-enk](https://github.com/d-enk) in [samber/lo#429 - Fix IsNil link for pkg.go.dev by [@&open-telemetry#8203;invzhi](https://github.com/invzhi) in [samber/lo#418 - Docs: should use type int64 for lo.FlatMap in example by [@&open-telemetry#8203;apriil15](https://github.com/apriil15) in [samber/lo#435 ##### CI - CI: tests on multi go versions by [@&open-telemetry#8203;jiro4989](https://github.com/jiro4989) in [samber/lo#445 #### New Contributors - [@&open-telemetry#8203;szepeviktor](https://github.com/szepeviktor) made their first contribution in [samber/lo#384 - [@&open-telemetry#8203;testwill](https://github.com/testwill) made their first contribution in [samber/lo#374 - [@&open-telemetry#8203;eltociear](https://github.com/eltociear) made their first contribution in [samber/lo#369 - [@&open-telemetry#8203;slomek](https://github.com/slomek) made their first contribution in [samber/lo#370 - [@&open-telemetry#8203;ericleb010](https://github.com/ericleb010) made their first contribution in [samber/lo#447 - [@&open-telemetry#8203;yanmhlv](https://github.com/yanmhlv) made their first contribution in [samber/lo#465 - [@&open-telemetry#8203;eiixy](https://github.com/eiixy) made their first contribution in [samber/lo#466 - [@&open-telemetry#8203;jiro4989](https://github.com/jiro4989) made their first contribution in [samber/lo#445 - [@&open-telemetry#8203;d-enk](https://github.com/d-enk) made their first contribution in [samber/lo#429 - [@&open-telemetry#8203;usman1100](https://github.com/usman1100) made their first contribution in [samber/lo#414 - [@&open-telemetry#8203;invzhi](https://github.com/invzhi) made their first contribution in [samber/lo#418 - [@&open-telemetry#8203;apriil15](https://github.com/apriil15) made their first contribution in [samber/lo#435 **Full Changelog**: samber/lo@v1.39.0...v1.40.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "on tuesday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/open-telemetry/opentelemetry-collector-contrib). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjEuMCIsInVwZGF0ZWRJblZlciI6IjM3LjQyMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJyZW5vdmF0ZWJvdCJdfQ==--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com> Co-authored-by: Yang Song <songy23@users.noreply.github.com>
Inserts an element or multiple elements at index i.